package io.gitee.zhangbinhub.admin.workflow.test

import com.fasterxml.jackson.databind.ObjectMapper
import io.gitee.zhangbinhub.admin.workflow.WorkFlowServerApplication
import io.gitee.zhangbinhub.admin.workflow.service.WorkFlowDefinitionService
import io.gitee.zhangbinhub.admin.workflow.service.WorkFlowService
import org.junit.jupiter.api.extension.ExtendWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit.jupiter.SpringExtension

/**
 * @author zhangbin by 28/04/2018 15:49
 * @since JDK 11
 */
@ExtendWith(SpringExtension::class)
@SpringBootTest(
    classes = [WorkFlowServerApplication::class],
    webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT
)
class BaseTest {
    @Autowired
    var objectMapper: ObjectMapper? = null

    @Autowired
    var workFlowService: WorkFlowService? = null

    @Autowired
    var workFlowDefinitionService: WorkFlowDefinitionService? = null
}
